import Vue from 'vue'
import Vuex from 'vuex'
import persistedState from 'vuex-persistedstate' //vuex持久化存储
import  common  from './common' 
Vue.use(Vuex)
export default new Vuex.Store({
  plugins: [
		persistedState({
			storage: window.sessionStorage, // 存储方式：localStorage、sessionStorage、cookies
			key: 'store' // 存储的 key 的key值
		})
	],
  modules:{
    common
  }
})
